package com.spring.springboot.Json;

import java.util.HashMap;
import java.util.Map;

/**
 * 项目名称: java_algorithm
 * @ClassName Test
 * @Description
 * @Author huipanxing huipanxing@chinasofti.com   @Date 2022/6/20 11:00
 */
public class Test {

    public static void main(String[] args) {

        String pmData="内容分发网络\n" +
                "对象存储服务\n" +
                "视频直播\n" +
                "弹性云服务器\n" +
                "云专线自动化\n" +
                "云硬盘\n" +
                "华为云会议\n" +
                "云搜索服务\n" +
                "虚拟私有云\n" +
                "Web应用防火墙\n" +
                "云数据库\n" +
                "软件开发平台\n" +
                "分布式缓存服务\n" +
                "DDoS高防\n" +
                "云备份\n" +
                "云容器引擎\n" +
                "华为云WeLink\n" +
                "文档数据库服务\n" +
                "云手机\n" +
                "云市场\n" +
                "安全中心\n" +
                "云堡垒机\n" +
                "NAT网关\n" +
                "分布式消息服务\n" +
                "云服务器备份\n" +
                "消息&短信\n" +
                "企业主机安全\n" +
                "视频点播\n" +
                "弹性文件服务\n" +
                "云速建站\n" +
                "推荐系统\n" +
                "云容器实例\n" +
                "域名注册服务\n" +
                "ModelArts\n" +
                "漏洞扫描服务\n" +
                "文字识别\n" +
                "语音通话\n" +
                "虚拟专用网络\n" +
                "云硬盘备份\n" +
                "语音交互服务\n" +
                "数据加密服务\n" +
                "应用运维管理\n" +
                "消息通知服务\n" +
                "云日志服务\n" +
                "人证核身解决方案\n" +
                "应用编排服务\n" +
                "Anti-DDoS流量清洗\n" +
                "云审计服务\n" +
                "镜像服务\n" +
                "云监控服务\n" +
                "云解析服务\n" +
                "弹性负载均衡\n" +
                "应用管理与运维平台\n" +
                "华为HiLens\n" +
                "iTA流量\n" +
                "云数据库GaussDB\n" +
                "主机迁移服务\n" +
                "容器镜像服务\n" +
                "图像搜索\n" +
                "应用魔方\n" +
                "数据复制服务\n" +
                "设备发放\n" +
                "函数工作流\n" +
                "媒体处理\n" +
                "VR云渲游平台\n" +
                "内容审核\n" +
                "API网关\n" +
                "云证书管理服务\n" +
                "弹性伸缩\n" +
                "云桌面\n" +
                "云客服\n" +
                "云数据迁移\n" +
                "语音外呼\n" +
                "设备接入\n" +
                "云性能测试服务\n" +
                "应用身份管理服务\n" +
                "图像识别\n" +
                "IoT云通信\n" +
                "支持计划\n" +
                "管理检测与响应\n" +
                "云连接\n" +
                "云原生DDoS防护\n" +
                "数据库安全服务\n" +
                "数据接入服务\n" +
                "全球SIM联接\n" +
                "对象存储迁移服务\n" +
                "裸金属服务器\n" +
                "应用性能管理\n" +
                "数据管理服务\n" +
                "敏捷与DevOps培训服务\n" +
                "人脸识别服务\n" +
                "自然语言处理\n" +
                "数据湖探索\n" +
                "分布式数据库中间件\n" +
                "态势感知\n" +
                "数据可视化\n" +
                "云上保障护航服务\n" +
                "用云专家服务\n" +
                "MapReduce服务\n" +
                "数据仓库服务\n" +
                "隐私保护通话\n" +
                "数据安全中心\n" +
                "表格存储服务\n" +
                "云存储网关\n" +
                "IoT数据分析\n" +
                "云会议+大屏组合包套餐\n" +
                "华为IdeaHub配件\n" +
                "华为IdeaHub Pro\n" +
                "IaaS咨询服务\n" +
                "数据运营专家服务\n" +
                "ROMA咨询服务\n" +
                "数据库咨询服务\n" +
                "区块链服务\n" +
                "鲲鹏人才培养专家服务\n" +
                "数据湖治理中心\n" +
                "WeLink培训服务\n" +
                "物联网云培训服务\n" +
                "专属计算集群服务\n" +
                "专属分布式存储服务\n" +
                "智能边缘云\n" +
                "云数据库 GaussDB for NoSQL\n" +
                "数据快递服务\n" +
                "华为云实时音视频\n" +
                "对话机器人服务\n" +
                "高级人工智能模型需求分析与设计\n" +
                "视频分析服务\n" +
                "专属主机\n" +
                "数据服务\n" +
                "线下产品\n" +
                "智能边缘平台\n" +
                "IdeaHub安装服务\n" +
                "Ideahub维保服务\n" +
                "训练服务\n" +
                "存储容灾服务\n" +
                "应用与数据集成平台\n" +
                "混合云基础服务集成交付服务\n" +
                "数据库规划设计与实施\n" +
                "混合云基础架构规划咨询与设计服务\n" +
                "HCSOnlineCBU解决方案产品服务\n" +
                "ROMA集成专业服务\n" +
                "数据仓库专家服务\n" +
                "智能数据专家服务\n" +
                "图引擎服务\n" +
                "IoT边缘\n" +
                "路网数字化服务\n" +
                "物联网专家服务\n" +
                "产品类型\n" +
                "视频接入服务\n" +
                "模型服务\n" +
                "CIS补录服务\n" +
                "地理智能体\n" +
                "园区智能体\n" +
                "工业智能体\n" +
                "园区智能体专家服务\n" +
                "医疗智能体\n" +
                "行业视频管理服务\n" +
                "容器专家服务\n" +
                "云网络专家服务\n" +
                "区块链专家服务\n" +
                "工业互联网培训服务\n" +
                "WeLink专业服务\n" +
                "人工智能云专家咨询服务\n" +
                "微服务引擎\n" +
                "可信智能计算服务\n" +
                "鲲鹏移植专家服务\n" +
                "HiLens Kit\n" +
                "Mic 500 智能阵列麦克风\n" +
                "云会议保障服务\n" +
                "鲲鹏测评专家服务\n" +
                "ROMA专家服务\n" +
                "弹性公网IP\n" +
                "企业名片\n" +
                "上云迁移服务\n" +
                "人工智能云培训服务\n" +
                "华为Ideahub S\n" +
                "WeLink咨询服务\n" +
                "设备管理\n" +
                "软件开发服务\n" +
                "华为交互式电子白板\n" +
                "企业协同独立软件\n" +
                "企业智慧屏\n" +
                "安全专家服务\n" +
                "企业协同生态硬件\n" +
                "会议\n" +
                "数据湖工厂\n" +
                "云防火墙\n" +
                "智能数据湖运营平台\n" +
                "敏捷与DevOps专家服务\n" +
                "媒体转码\n" +
                "水智能体\n" +
                "云数据库HUAWEI TaurusDB\n" +
                "云数据库GaussDB for MSQL\n" +
                "数据湖服务\n" +
                "华为云会议宝IdeaHub样机\n" +
                "WeLink “Athena+”专业服务\n" +
                "WeLink“Search+”专业服务\n" +
                "数据库专家服务\n" +
                "微半球型软件定义摄像机\n" +
                "交通智能体专家服务\n" +
                "云办公主机服务\n" +
                "威胁检测服务\n" +
                "企业云化咨询服务\n" +
                "企业上云网络规划设计服务\n" +
                "FRS人脸识别专家服务\n" +
                "数字化诊断治理专家服务\n" +
                "云原生专家服务\n" +
                "微服务专家服务\n" +
                "认证测试中心\n" +
                "云消息服务\n" +
                "WeLink运维保障服务\n" +
                "契约锁电子签约（服务）\n" +
                "环思纺织服装工业互联网平台（服务）\n" +
                "朗新智能人力资源管理系统（服务）\n" +
                "朗新智能人力资源管理系统独立部署版（服务）\n" +
                "国际5G消息基础版（服务）\n";

        String[] splitPmData = pmData.split("\n");

        String myData="hws.service.type.antiddos,Anti-DDoS流量清洗\n" +
                "hws.service.type.apig,API网关\n" +
                "hws.service.type.cisus,CIS补录服务\n" +
                "hws.service.type.cad,DDoS高防\n" +
                "hws.service.type.frsss,FRS人脸识别专家服务\n" +
                "hws.service.type.cbu.hcso,HCSOnlineCBU解决方案产品服务\n" +
                "hws.service.type.hilenskit,HiLens Kit\n" +
                "hws.service.type.consultation.iaas,IaaS咨询服务\n" +
                "hws.service.type.ideahubinstall,IdeaHub安装服务\n" +
                "hws.service.type.oceanlink,IoT云通信\n" +
                "hws.service.type.iotanalytics,IoT数据分析\n" +
                "hws.service.type.iotedge,IoT边缘\n" +
                "hws.service.type.ita,iTA流量\n" +
                "hws.service.type.bigdata,MapReduce服务\n" +
                "hws.service.type.huaweicloudlinkmic500,Mic 500 智能阵列麦克风\n" +
                "hws.service.type.modelarts,ModelArts\n" +
                "hws.service.type.natgateway,NAT网关\n" +
                "hws.service.type.profroma,ROMA专家服务\n" +
                "hws.service.type.romaconsultation,ROMA咨询服务\n" +
                "hws.service.type.romais,ROMA集成专业服务\n" +
                "hws.service.type.cvr,VR云渲游平台\n" +
                "hws.service.type.waf,Web应用防火墙\n" +
                "hws.service.type.welinkopenathena,WeLink “Athena+”专业服务\n" +
                "hws.service.type.welinkopensearch,WeLink“Search+”专业服务\n" +
                "hws.service.type.welinkps,WeLink专业服务\n" +
                "hws.service.type.welinkcs,WeLink咨询服务\n" +
                "hws.service.type.hwwelinkt,WeLink培训服务\n" +
                "hws.service.type.welinkom,WeLink运维保障服务\n" +
                "hws.service.type.profCloudMigrationService,上云迁移服务\n" +
                "hws.service.type.deh,专属主机\n" +
                "hws.service.type.dss,专属分布式存储服务\n" +
                "hws.service.type.dec,专属计算集群服务\n" +
                "hws.service.type.sms,主机迁移服务\n" +
                "hws.service.type.profEventManagementService,云上保障护航服务\n" +
                "hws.service.type.dcaas,云专线自动化\n" +
                "hws.service.type.ideahubmeeting,云会议+大屏组合包套餐\n" +
                "hws.service.type.meetingmanagement,云会议保障服务\n" +
                "hws.service.type.workspacehost,云办公主机服务\n" +
                "hws.service.type.cnad,云原生DDoS防护\n" +
                "hws.service.type.profcontainer,云原生专家服务\n" +
                "hws.service.type.cbh,云堡垒机\n" +
                "hws.service.type.cbr,云备份\n" +
                "hws.service.type.csg,云存储网关\n" +
                "hws.service.type.cts,云审计服务\n" +
                "hws.service.type.cec,云客服\n" +
                "hws.service.type.cci,云容器实例\n" +
                "hws.service.type.cce,云容器引擎\n" +
                "hws.service.type.marketplace,云市场\n" +
                "hws.service.type.cpts,云性能测试服务\n" +
                "hws.service.type.cph,云手机\n" +
                "hws.service.type.ess,云搜索服务\n" +
                "hws.service.type.rds,云数据库\n" +
                "hws.service.type.nosql,云数据库 GaussDB for NoSQL\n" +
                "hws.service.type.taurus,云数据库GaussDB\n" +
                "hws.service.type.cdm,云数据迁移\n" +
                "hws.service.type.lts,云日志服务\n" +
                "hws.service.type.csbs,云服务器备份\n" +
                "hws.service.type.vdi,云桌面\n" +
                "hws.service.type.koomessage,云消息服务\n" +
                "hws.service.type.ces,云监控服务\n" +
                "hws.service.type.ebs,云硬盘\n" +
                "hws.service.type.vbs,云硬盘备份\n" +
                "hws.service.type.dns,云解析服务\n" +
                "hws.service.type.ccm,云证书管理服务\n" +
                "hws.service.type.cen,云连接\n" +
                "hws.service.type.cloudsite,云速建站\n" +
                "hws.service.type.cfw,云防火墙\n" +
                "hws.service.type.tgss,交通智能体专家服务\n" +
                "hws.service.type.eiexpertconsulting,人工智能云专家咨询服务\n" +
                "hws.service.type.profaitraining,人工智能云培训服务\n" +
                "hws.service.type.frs,人脸识别服务\n" +
                "hws.service.type.ivs,人证核身解决方案\n" +
                "hws.service.type.cnes,企业上云网络规划设计服务\n" +
                "hws.service.type.hss,企业主机安全\n" +
                "hws.service.type.hcc,企业云化咨询服务\n" +
                "hws.service.type.ecsoftware,企业协同独立软件\n" +
                "hws.service.type.partnerdevices,企业协同生态硬件\n" +
                "hws.service.type.bcd,企业名片\n" +
                "hws.service.type.gsl,全球SIM联接\n" +
                "hws.service.type.cdn,内容分发网络\n" +
                "hws.service.type.moderation,内容审核\n" +
                "hws.service.type.functionstage,函数工作流\n" +
                "hws.service.type.ddm,分布式数据库中间件\n" +
                "hws.service.type.dms,分布式消息服务\n" +
                "hws.service.type.dcs,分布式缓存服务\n" +
                "hws.service.type.profbcs,区块链专家服务\n" +
                "hws.service.type.bcs,区块链服务\n" +
                "hws.service.type.eiHealth,医疗智能体\n" +
                "hws.service.type.hilens,华为HiLens\n" +
                "hws.service.type.huaweiideahubpro,华为IdeaHub Pro\n" +
                "hws.service.type.interactivewhiteboard,华为Ideahub S\n" +
                "hws.service.type.huaweiideahubaccessories,华为IdeaHub配件\n" +
                "hws.service.type.workplace,华为云WeLink\n" +
                "hws.service.type.cloudvc,华为云会议\n" +
                "hws.service.type.huaweiideahubtrial,华为云会议宝IdeaHub样机\n" +
                "hws.service.type.cloudrtc,华为云实时音视频\n" +
                "hws.service.type.HuaweiIWB,华为交互式电子白板\n" +
                "hws.service.type.tics,可信智能计算服务\n" +
                "hws.service.type.campusgo,园区智能体\n" +
                "hws.service.type.cgss,园区智能体专家服务\n" +
                "hws.service.type.imagesearch,图像搜索\n" +
                "hws.service.type.irs,图像识别\n" +
                "hws.service.type.ges,图引擎服务\n" +
                "hws.service.type.GeoGenius,地理智能体\n" +
                "hws.service.type.domains,域名注册服务\n" +
                "hws.service.type.mtd,威胁检测服务\n" +
                "hws.service.type.mpc,媒体处理\n" +
                "hws.service.type.sdrs,存储容灾服务\n" +
                "hws.service.type.sc,安全中心\n" +
                "hws.service.type.swr,容器镜像服务\n" +
                "hws.service.type.cbs,对话机器人服务\n" +
                "hws.service.type.obs,对象存储服务\n" +
                "hws.service.type.oms,对象存储迁移服务\n" +
                "hws.service.type.hwiit,工业互联网培训服务\n" +
                "hws.service.type.industrialintelligenttwins,工业智能体\n" +
                "hws.service.type.roma,应用与数据集成平台\n" +
                "hws.service.type.apm,应用性能管理\n" +
                "hws.service.type.servicestage,应用管理与运维平台\n" +
                "hws.service.type.aos,应用编排服务\n" +
                "hws.service.type.oneaccess,应用身份管理服务\n" +
                "hws.service.type.aom,应用运维管理\n" +
                "hws.service.type.aomforhcs,应用运维管理\n" +
                "hws.service.type.appcube,应用魔方\n" +
                "hws.service.type.ec2,弹性云服务器\n" +
                "hws.service.type.as,弹性伸缩\n" +
                "hws.service.type.eip,弹性公网IP\n" +
                "hws.service.type.sfs,弹性文件服务\n" +
                "hws.service.type.elb,弹性负载均衡\n" +
                "hws.service.type.sdcnfd,微半球型软件定义摄像机\n" +
                "hws.service.type.profmicroservice,微服务专家服务\n" +
                "hws.service.type.cse,微服务引擎\n" +
                "hws.service.type.sa,态势感知\n" +
                "hws.service.type.res,推荐系统\n" +
                "hws.service.type.supportplan,支持计划\n" +
                "hws.service.type.proDevCloudExpertService,敏捷与DevOps专家服务\n" +
                "hws.service.type.adot,敏捷与DevOps培训服务\n" +
                "hws.service.type.dtc,数字化诊断治理专家服务\n" +
                "hws.service.type.gdwsps,数据仓库专家服务\n" +
                "hws.service.type.dws,数据仓库服务\n" +
                "hws.service.type.kms,数据加密服务\n" +
                "hws.service.type.dlv,数据可视化\n" +
                "hws.service.type.drs,数据复制服务\n" +
                "hws.service.type.sdg,数据安全中心\n" +
                "hws.service.type.profDatabaseExpertService,数据库专家服务\n" +
                "hws.service.type.dbcs,数据库咨询服务\n" +
                "hws.service.type.dbss,数据库安全服务\n" +
                "hws.service.type.dbshcsodesign,数据库规划设计与实施\n" +
                "hws.service.type.des,数据快递服务\n" +
                "hws.service.type.dis,数据接入服务\n" +
                "hws.service.type.aidas,数据服务\n" +
                "hws.service.type.dlf,数据湖工厂\n" +
                "hws.service.type.uquery,数据湖探索\n" +
                "hws.service.type.dlg,数据湖治理中心\n" +
                "hws.service.type.das,数据管理服务\n" +
                "hws.service.type.huaweidoes,数据运营专家服务\n" +
                "hws.service.type.ocr,文字识别\n" +
                "hws.service.type.dds,文档数据库服务\n" +
                "hws.service.type.huaweiides,智能数据专家服务\n" +
                "hws.service.type.iec,智能边缘云\n" +
                "hws.service.type.ief,智能边缘平台\n" +
                "hws.service.type.aimgs,模型服务\n" +
                "hws.service.type.watergo,水智能体\n" +
                "hws.service.type.rtcsms,消息&短信\n" +
                "hws.service.type.smn,消息通知服务\n" +
                "hws.service.type.hcits,混合云基础服务集成交付服务\n" +
                "hws.service.type.hcids,混合云基础架构规划咨询与设计服务\n" +
                "hws.service.type.webscan,漏洞扫描服务\n" +
                "hws.service.type.iotproser,物联网专家服务\n" +
                "hws.service.type.profiottraining,物联网云培训服务\n" +
                "hws.service.type.cloudexpert,用云专家服务\n" +
                "hws.service.type.sas,管理检测与响应\n" +
                "hws.service.type.offline,线下产品\n" +
                "hws.service.type.nlp,自然语言处理\n" +
                "hws.service.type.vpn,虚拟专用网络\n" +
                "hws.service.type.vpc,虚拟私有云\n" +
                "hws.service.type.ivm,行业视频管理服务\n" +
                "hws.service.type.cloudtable,表格存储服务\n" +
                "hws.service.type.baremetal,裸金属服务器\n" +
                "hws.service.type.eivas,视频分析服务\n" +
                "hws.service.type.vis,视频接入服务\n" +
                "hws.service.type.vod,视频点播\n" +
                "hws.service.type.live,视频直播\n" +
                "hws.service.type.ctc,认证测试中心\n" +
                "hws.service.type.aimvs,训练服务\n" +
                "hws.service.type.iotps,设备发放\n" +
                "hws.service.type.iotda,设备接入\n" +
                "hws.service.type.oceanconnect,设备管理\n" +
                "hws.service.type.sis,语音交互服务\n" +
                "hws.service.type.cloudecpstn,语音外呼\n" +
                "hws.service.type.cloudvoice,语音通话\n" +
                "hws.service.type.v2x,路网数字化服务\n" +
                "hws.service.type.devcloud,软件开发平台\n" +
                "hws.service.type.ims,镜像服务\n" +
                "hws.service.type.privatenumber,隐私保护通话\n" +
                "hws.service.type.aaimads,高级人工智能模型需求分析与设计\n" +
                "hws.service.type.kpt,鲲鹏人才培养专家服务\n" +
                "hws.service.type.kpees,鲲鹏测评专家服务\n" +
                "hws.service.type.profKPTransplantService,鲲鹏移植专家服务\n";

        String myProductData="ZB202007230001,hws.service.type.ec2\n" +
                "ZB202007230002,hws.service.type.ebs\n" +
                "ZB202007230003,hws.service.type.rds\n" +
                "ZB202007230004,hws.service.type.eip\n" +
                "ZB202007230005,hws.service.type.vpc\n" +
                "ZB202007230006,hws.service.type.obs\n" +
                "ZB202007230007,hws.service.type.dcs\n" +
                "ZB20220419YHTR25,hws.service.type.cdn\n" +
                "ZB20220425ZV94CS,hws.service.type.workplace\n" +
                "ZB20220506A1Z7AZ,hws.service.type.antiddos\n" +
                "ZB20220506B4OYJV,hws.service.type.apig\n" +
                "ZB20220506DSE03S,hws.service.type.cdn\n" +
                "ZB2022050716E6IJ,hws.service.type.cdn\n" +
                "ZB20220507441VHO,hws.service.type.apig\n" +
                "ZB202205103XAYNX,hws.service.type.apig\n" +
                "ZB20220510ALFBQD,hws.service.type.apig\n" +
                "ZB20220510NQREAJ,hws.service.type.apig\n" +
                "ZB20220510R56XA1,hws.service.type.antiddos\n" +
                "ZB20220511907FNM,hws.service.type.antiddos\n" +
                "ZB20220511VGQRL0,hws.service.type.cad\n" +
                "ZB202205128XMZAW,hws.service.type.dms\n" +
                "ZB20220512O9KNGV,hws.service.type.frsss\n" +
                "ZB20220518GZ9VHS,hws.service.type.ec2\n" +
                "ZB20220610P2P5H0,hws.service.type.sfs\n" +
                "ZB202206163GAJFE,hws.service.type.cbr\n" +
                "ZB20220616GXBOBZ,hws.service.type.cad\n" +
                "ZB20220616V6HD70,hws.service.type.apig\n";


        String[] splitMyData = myData.split("\n");
        Map<String,String> map=new HashMap<>();
        for (String splitMyDatum : splitMyData) {
            String[] split = splitMyDatum.split(",");
            map.put(split[1],split[0]);
        }

        String[] splitMyProductData = myProductData.split("\n");
        Map<String,String> myProductDataMap=new HashMap<>();
        for (String splitMyDatum : splitMyProductData) {
            String[] split = splitMyDatum.split(",");
            myProductDataMap.put(split[1],split[0]);
        }

        for (String splitPmDatum : splitPmData) {
            if (map.keySet().contains(splitPmDatum)){
                System.out.println(splitPmDatum+","+map.get(splitPmDatum)+","+(myProductDataMap.get(map.get(splitPmDatum))==null?"":myProductDataMap.get(map.get(splitPmDatum))));
//                System.out.println(splitPmDatum+","+map.get(splitPmDatum)+","+myProductDataMap.get(map.get(splitPmDatum)));
            }else {
                System.out.println(splitPmDatum+",");
            }
        }


    }
}
